package com.leyou.gateway.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 查询目标服务所拥有的权限服务
     * @param id
     * @param secret
     * @return
     */
    @GetMapping("/authorization")
    public String authorize(@RequestParam("id")Long id,@RequestParam("secret") String secret);

}
